package com.fengye.model;

import java.io.Serializable;
import java.lang.reflect.Method;

/**
 * @Author fengye
 * @Date 2023/2/13 13:05
 **/
public class InvokeService implements Serializable {
    private static final long serialVersionUID = -5643937254191022167L;

    /** 服务提供类 */
    private Class<?> serviceItf;

    /** 服务提供者 */
    private Object serviceObject;

    /** 服务方法 */
    private Method serviceMethod;
    /** 服务调用方ip */
    private String invokerIp;
    /** 超时时间 */
    private long timeout;
    /** 服务提供者appKey */
    private String remoteAppKey;
    /** 服务调用者appKey */
    private String appKey;
    /** 服务分组信息 */
    private String groupName = "default";

    public Class<?> getServiceItf() {
        return serviceItf;
    }

    public void setServiceItf(Class<?> serviceItf) {
        this.serviceItf = serviceItf;
    }

    public Object getServiceObject() {
        return serviceObject;
    }

    public void setServiceObject(Object serviceObject) {
        this.serviceObject = serviceObject;
    }

    public Method getServiceMethod() {
        return serviceMethod;
    }

    public void setServiceMethod(Method serviceMethod) {
        this.serviceMethod = serviceMethod;
    }

    public String getInvokerIp() {
        return invokerIp;
    }

    public void setInvokerIp(String invokerIp) {
        this.invokerIp = invokerIp;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public String getRemoteAppKey() {
        return remoteAppKey;
    }

    public void setRemoteAppKey(String remoteAppKey) {
        this.remoteAppKey = remoteAppKey;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
}
